package com.xiyou.rmls.constants.rule;

public interface RuleConstant {
    /**
     * conditionType的类型
     * 用来区分是普通规则，关系，循环规则，关系组
     */
    public static String RULE_TYPE = "1";
    public static String RELATION_TYPE = "2";
    public static String CIRCULATE_RELATION_TYPE = "3";
    public static String CONDITION_GROUP_TYPE = "4";

    /**
     * 若当前是规则组，则该字段用来区分规则组的类型
     * 1 数量判断（当命中的数量到达规定的时候满足）
     * 2 |和&的判断 逻辑判断
     */
    public static String HIT_NUM_TYPE = "1";
    public static String LOGIC_TYPE = "2";

    /**
     * 退出条件
     * 1: 命中不退出
     * 2: 命中即退出
     */
    public static String HIT_NO_QUITE = "1";
    public static String HIT_QUITE = "2";

    /**
     * 常用字符
     */
    public static String LEFT_BRACKET = "(";
    public static String RIGHT_BRACKET = ")";
    public static String SINGLE_OR = "|";
    public static String SINGLE_AND = "&";
    public static String DOUBLE_OR = "||";
    public static String DOUBLE_AND = "&&";
    public static String BLANK_DOUBLE_AND = " && ";
    public static String AND = "and";
    public static String OR = "or";
    public static String BLANK = " ";

    /**
     * 字段类型
     */
    public static String NUM = "1";
    public static String TEXT = "2";
    public static String DATE = "3";
    public static String CODE = "4";
}
